package net.kts.subskill.airport;

import net.kts.main.R;
import net.kts.transrate.TranslateService;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;

public class AirportGuideMain extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.airport_main);
        
        // 1. 라벨 출력
        String labelText = TranslateService.translateRepository("공항 안내");
        if(labelText == null){
        }else if(labelText.trim().equals("")){
        }else{
        	TextView label = (TextView) findViewById(R.id.tv_airport_Label);
        	label.setText(TranslateService.translateRepository(labelText));
        }
        
        // 2. 버튼 이벤트 받기
        // 김포공항
		Button btnGimpo = (Button)findViewById(R.id.getGimpo);
		btnGimpo.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(AirportGuideMain.this, GimpoAirport.class);
				
				startActivity(intent);
			}
		});
		
        // 인천공항
		Button btnIncheon = (Button)findViewById(R.id.getIncheon);
		btnIncheon.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(AirportGuideMain.this, IncheonAirport.class);
				
				startActivity(intent);
			}
		});
        
        
    }
}